import Vue from 'vue';
import Router from 'vue-router';
import App from './Download.vue'; // 确保引入了 App 组件
import download from '@/views/Application/download.vue';
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';

Vue.use(ElementUI);
Vue.use(Router);

const router = new Router({
  routes: [
    {
      path: '/download/:id',
      name: 'download',
      component: download
    }
  ],
  mode: 'history'
});

new Vue({
  router, // 将router配置传递给Vue实例
  render: (h) => h(App)
}).$mount('#download'); // 确保这里挂载到id为'download'的元素上
